home *** CD-ROM | disk | FTP | other *** search
- Path: news.itd.umich.edu!clahey
- From: clahey@rep00703.reshall.umich.edu (Chris Lahey)
- Newsgroups: comp.lang.c
- Subject: Re: a dump question from a novice C programmer
- Date: 28 Jan 1996 10:36:42 GMT
- Organization: University of Michigan
- Message-ID: <CLAHEY.96Jan28103643@rep00703.reshall.umich.edu>
- References: <jyli-2801960040100001@li.gsfc.nasa.gov>
- NNTP-Posting-Host: rep00703.reshall.umich.edu
- In-reply-to: jyli@climate.gsfc.nasa.gov's message of Sun, 28 Jan 1996 00:40:10
- -0500
-
-
- > for (iv=0; iv < specp->nlvars; iv++)
-
- > what does this symbol "->" mean? I've looked all over my C books, could
- > not find anything on it.
-
- -> is listed in the textbook I have as the indirect selection operator.
- It has two operands, one on either side. The left operand has to be a
- pointer to a structure and the right operand must be a member of said
- structure. specp is a pointer to a structure and nlvars is one of the
- members of that structure. specp->nlvars is equivelent to
- (*specp).nlvars.
-
- Good luck,
- Chris
-